-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Responsive full view #17
Conversation
README.md
Outdated
@@ -100,29 +102,13 @@ class App extends Component { | |||
export default App; | |||
``` | |||
|
|||
4- Customize the widget to match your app design! You can add both props to manage the title of the widget, the avatar it will use and of course the styles it will have. | |||
4- Customize the widget to match your app design! You can add both props to manage the title of the widget, the avatar it will use and of course, you can change, from the CSS, the styles the widget will have. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a lot of commas at the end of this sentence, check how to paraphrase it with iniaki
README.md
Outdated
- **stylesInjected:** (Proptypes.object) The styles to be injected, see [styles](#styles) | ||
- **handleNewUserMessage:** (PropTypes.func.isRequired) Function to handle the user input, will receive the full text message when submitted | ||
- **profileAvatar:** (PropTypes.string) The profile image that will be set on the responses | ||
- **showCloseButton:** (PropTypes.bool) Show or not the close button in full screen mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show or hide
<div className="header"> | ||
{showCloseButton && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave the {
in a separate line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmm.. I don't really like the way it looks writing in a separate line and leaving the {
alone 😞
<div className="header"> | ||
{showCloseButton && | ||
<button className="close-button" onClick={toggleChat}> | ||
<img src={close} className="close" alt="" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the alt value to "close"
flex-direction: column; | ||
height: 100%; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line at EOF
Description
Add full screen in responsive mobile view
Screenshot
Landscape: